import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const UserStore = defineStore('UserStore', () => {
 const avator=ref('')
 const nickname=ref('')
 const username=ref('')
 const rolename=ref('')
 const userlist=(data:any)=>{
  avator.value=data.avator
  nickname.value=data.nickname
  username.value=data.username
  rolename.value=data.rolename

 }
  return {userlist,avator, nickname, username, rolename}
})
